package com.yuantong.xyerp.core.provider.service;

import com.yuantong.xyerp.core.api.dto.MerchantDto;
import com.yuantong.xyerp.core.api.service.IMerchantService;
import com.yuantong.xyerp.core.provider.dao.MerchantMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * Created by Jianguo.Yin on 2021-08-03.
 */
@Service
public class MerchantServiceImpl implements IMerchantService {

    @Resource
    private MerchantMapper merchantMapper;

    @Override
    public List<MerchantDto> findByFuzzy(String merchantType, Date startTime, Date endTime, String fuzzy, List<String> ids) {
        return merchantMapper.findAllByFuzzy(merchantType, startTime, endTime, fuzzy, ids);
    }
}
